#! /bin/bash
#menu.sh

echo -e "安装本地或gitlab私有库...\r\n"
echo -e "请选择安装来源\r\n"
echo "1. 本地的"
echo "2. 外部的"
read type;

if [$type==1]
then
echo  -n "请输入地址: "
read address
echo -e "输入的地址是: $address \r\n"
echo "正在卸载现有包链接"
npm uninstall cl-shared
echo "安装中..."
npm install $address;

else
echo "外部的";
npm uninstall cl-shared
npm install git+ssh://git@git.induschain.cn:firstclassland/cl-shared.git

fi
